from rest_framework.permissions import DjangoModelPermissions, IsAdminUser
from rest_framework.viewsets import ModelViewSet
from apps.goods.models import SPUSpecification
from apps.wthg_admin.serializers.specs import SPUSpecificationModelSerializer
from apps.wthg_admin.utils import UtilsPageNumberPagination


class SPUSpecificationModelViewSet(ModelViewSet):
    """规格表管理视图"""
    queryset = SPUSpecification.objects.all()
    serializer_class = SPUSpecificationModelSerializer
    pagination_class = UtilsPageNumberPagination

